<?php /* Smarty version Smarty-3.1.14, created on 2013-07-13 05:25:41
         compiled from ".\templates\partyList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2398451e0d15f6850a8-82079886%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3090d7d170810959db1b1d2c7128193127e292cd' => 
    array (
      0 => '.\\templates\\partyList.tpl',
      1 => 1373690602,
      2 => 'file',
    ),
    '618a8806a72fcbb4fc6da03633741441f2646116' => 
    array (
      0 => 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\finshiv\\templates\\main.tpl',
      1 => 1373692894,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2398451e0d15f6850a8-82079886',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_51e0d15f76f857_65601840',
  'variables' => 
  array (
    's_activId' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51e0d15f76f857_65601840')) {function content_51e0d15f76f857_65601840($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<head>
  <title>!! Fin Shiv !!</title>
  <script type="text/javascript" src="./js/jquery.min.js"></script>
  <link href="css/style.css" rel="stylesheet" type="text/css" />

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="./js/jquery.js" type="text/javascript"></script>
<script src="./js/jquery.dataTables.js" type="text/javascript"></script>

<style type="text/css">
    @import "./css/demo_table_jui.css";
    @import "./themes/ui-lightness/jquery-ui-1.8.4.custom.css";
</style>

<style>
    *{
        font-family: arial;
    }
</style>
<script type="text/javascript" charset="utf-8">
  $(document).ready(function(){
    $('#datatables').dataTable({
      "sPaginationType":"full_numbers",
      "aaSorting":[[2, "desc"]],
      "bJQueryUI":true
    });
  })
</script>  
<script type="text/javascript">    
  function myFunction()
  {
  	if(confirm("Are You Sure To Delete")== true)
  	{
  		return true;
  	}
  	else
  	{
  		return false;
  	}
  }
</script>


</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
    <td class="content">
    <?php if (strlen($_smarty_tpl->tpl_vars['s_activId']->value)>0){?>
      <a href="logout.php" class="link">Logout</a> |
      <a href="backup.php" style="width:15px;" class="link">&#2384;</a> |
      <a href="index.php">Home</a> |
      <a href="changePassword.php">Change Password</a> |
      <a href="loan.php">Loan</a> |
      <a href="loanList.php">Loan List</a> |
      <a href="partyList.php">Party List</a> 
    <?php }?>
    </td>
  </tr>
  <?php if (strlen($_smarty_tpl->tpl_vars['s_activId']->value)>0){?>
  <tr align="center">
    <td class="bluebg1">
      <div class="suckertreemenu">
      <br />
        <ul id="treemenu1">
        </ul>
      <br /><br /><br />
      </div>
    </td>
  </tr>
  <?php }?>
  <tr>
  <td class="content">
  
<div>
<table id="datatables" class="display">
  <thead>
    <tr>
      <th align="left">&nbsp;</th>
      <th align="left">Party</th>
      <th align="left">Address</th>
      <th align="left">mobile</th>
      <th align="left">Photo</th>
      <th align="left">otherInfo</th>
    </tr>
  </thead>
  <tbody>
    <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['rec'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['rec']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['name'] = 'rec';
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['partyArray']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['total']);
?>
    <tr>
    	<td><a href="partyDelete.php?partyId=<?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec']['index']]['partyId'];?>
" onclick="return myFunction();">Delete</a>
      <td><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec']['index']]['partyName'];?>
</td>
      <td><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec']['index']]['address'];?>
</td>
      <td><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec']['index']]['mobile'];?>
</td>
      <td><img src="./images/<?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec']['index']]['photo'];?>
" width="100px" height="100px"></td>
      <td><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec']['index']]['otherInfo'];?>
</td>
    </tr> 
    <?php endfor; endif; ?> 
  </tbody>
</table>
</div>

  </td>
  </tr>
  <tr>
    <td class="bluebg1">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="images/corner3.gif" width="6" height="7" /></td>
        <td></td>
        <td align="right"><img src="images/corner4.gif" width="6" height="7" /></td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</body><?php }} ?>